#ifndef __MAIN_H__
#define __MAIN_H__
#include "eeprom.h"
#include "dsp.h"
#include "key.h"
#define LED(x) {P0=x;P2=(P2&0x1f|0x80);P2&=0x1f;}
#define BUZ(x) {P0=x;P2=(P2&0x1f|0xA0);P2&=0x1f;}
#define COM(x) {P0=x;P2=(P2&0x1f|0xC0);P2&=0x1f;}
#define SEG(x) {P0=x;P2=(P2&0x1f|0xE0);P2&=0x1f;}
#endif